<?php
namespace app\common\model;

class UserActivationLog extends \think\Model {
	protected $table = 'league_user_activation_log';

	public function getTypeAttr($value) {
		$type = [
			1 => '充值',
			2 => '使用',
			3 => '转出',
			4 => '转入'
		];
		return $type[$value];
	}

	public function getIsStateAttr($value) {
		$state = [0 => '否', 1 => '是'];
		return $state[$value];
	}
}
?>